package com.mrs.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mrs.common.dto.UserDto;
import com.mrs.entity.User;
import com.mrs.exception.BusinessException;

import java.util.List;

public interface UserService extends IService<User> {

    boolean saveUser(User user);

    UserDto login(UserDto userDto) throws BusinessException;

    User register(UserDto userDto) throws BusinessException;


    // int save(User user);


    //
    // List<User> page(Integer currentPage, Integer pageSize, String username,
    //                 String email,String address);
}
